<?php
declare (strict_types = 1);

namespace app\admin\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Articles extends Model
{
    //

    /**
     * 查询文章
     * @param $where
     * @param $offset
     * @param $limit
     */
    public function getArticlesByWhere(array $where, int $limit)
    {
        return $this->where($where)->order('id desc')->paginate($limit);
    }

}
